package service;

import entity.Article;
import mapper.ArticleMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public class ArticleServiceImpl implements ArticleService {
    @Autowired
    private ArticleMapper articleMapper;
    @Override
    public boolean insert(Article article) {
        return articleMapper.insert(article)>0?true:false;
    }

    @Override
    public List<Article> selectAll() {
        return null;
    }

    @Override
    public Article selectByAccount(String account) {
        return null;
    }

    @Override
    public Article selectById(Integer id) {
        return null;
    }
}
